<template>
  <div>
    <h1>Hello World</h1>

    <p>姓名：{{ name }}</p>

    <button @click="name = '里斯'">点我修改为 里斯</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      name: "张三",
    };
  },

  methods: {
    changeName(name) {
      alert("changeName");
      this.name = name;
    },
  },
};
</script>
